<template>
  <div class="container">
    <div class="content-box">
      <i class="el-icon-success"></i>
      <div class="pay-status">支付完成</div>
      <div class="pay-price">
        <span>已支付：</span>
        <span class="price">{{orderDeatil.amountPay}}元</span>
      </div>
      <div class="guide">你可前往【能+商城 - 套餐购买记录】查看记录</div>
      <div class="btn-box">
        <el-button style='margin-right:10px;' @click="toShowOrderList">套餐购买记录</el-button>
        <el-button  type="primary" @click="toShowMyEquity">我的权益</el-button>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'orderCompletion',
  data () {
    return {
      orderDeatil: {
        amountPay: '',
        gasId: '' // 油站ID
      } // 订单信息
    }
  },
  created () {
    this.orderDeatil = {
      amountPay: this.$route.query.amountPay || 0,
      gasId: this.$route.query.gasId || ''
  }
  },
  mounted () {},
  methods: {
    // 进入我的订单列表页面
    toShowOrderList () {
      this.$router.push('/marketCenter/myOrder')
    },
    // 进入我的权益页面
    toShowMyEquity () {
      let { gasId } = this.orderDeatil
      this.$router.push({path: '/marketCenter/equityPage', query: {gasId}})
    }
  }
}
</script>

<style lang="less" scoped>
.container {
  padding: 20px 10px 0 10px;
  height: 100%;
  .content-box {
    min-width: 511px;
    min-height: 522px;
    height: 100%;
    background: #ffffff;
    padding-top: 120px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .el-icon-success {
    font-size: 90px;
    color: #4B7EFE;
  }
  .icon {
    width: 90px;
    height: 90px;
    background: #4B7EFE;
    border-radius: 50%;
  }
  .btn-box {
    margin-top: 36px;
    /deep/ .el-button {
      padding: 12px 58px;
    }
  }
  .pay-status {
    color: #222222;
    font-size: 20px;
    font-weight: bold;
    margin-top: 16px;
  }
  .pay-price {
    color: #222222;
    font-size: 20px;
    font-weight: bold;
    margin-top: 16px;
    .price {
      color: #E31837;
    }
  }
  .guide {
    color: #666666;
    font-size: 16px;
    margin-top: 36px;
  }

}
</style>
